﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class Node
{
    public int x;
    public int y;
    public int gConst;
    public int hConst;
    public Vector2 pos;
    public bool canWalk;
    public bool isPass;
    public bool isMonster;
    public GameObject goods;

    public Node parent;

    public int fConst
    {
        get { return gConst + hConst; }
    }

    public Node(int x,int y,Vector3 pos)
    {
        this.x = x;
        this.y = y;
        this.pos = pos;
    }
}

